#ifndef _VC1DECAPI_H_
#define _VC1DECAPI_H_
#ifdef cplusplus
extern "C" {
#endif
typedef void* VC1DECODER;

typedef enum {
	VC1_OK = 0,
	VC1_INVALIDHANDLE,
	VC1_INVALIDBITSTREAM,
	VC1_INSUFFICIENT_MEMORY,
	VC1_INVALID_SEQUENCE,
	VC1_INVALIDPROFILE,
	VC1_PROFILENOTSUPPORTED,
	VC1_UNKNOWNPICTURETYPE,
	VC1_BUFFEROVERFLOW,
	VC1_FRAMENOTREADY,
	VC1_UNKNOWERROR
}HRESULT_VC1;

HRESULT_VC1 VC1Dec_Init(VC1DECODER* psDecoder,int iWidth,int iHeight,char profile,char level,unsigned char* pSequence,int iLength);
HRESULT_VC1 VC1Dec_Close(VC1DECODER sDecoder);
HRESULT_VC1 VC1Dec_DecodeData(VC1DECODER sDecoder, unsigned char* pStream, int iLen);
HRESULT_VC1 VC1Dec_GetDecodedFrame(VC1DECODER sDecoder,unsigned char** pY,unsigned char** pU,unsigned char** pV,int* pWidth, int* pHeight, int* pStride);

#ifdef cplusplus
}
#endif
#endif